﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ep_versions.aspx.cs" Inherits="ePioneer_Center_ep_versions" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/table.css" rel="stylesheet" type="text/css" />
    <script src="Javascript/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#cbkAll").click(function () {
                var chks = $("input[tt=aa]");
                for (var i = 0; i < chks.length; i++) {
                    chks[i].checked = this.checked;
                }
            });
            $("#btnPub").click(function () {
                var chks = $("input[tt=aa]");
                var ids = "";
                for (var i = 0; i < chks.length; i++) {
                    if (chks[i].checked) {
                        ids += chks[i].value + ",";
                    }
                }
                ids = ids.substring(0, ids.length - 1);
                document.getElementById("hidIds").value = ids;
            });

            $("#btnCancelPub").click(function () {
                var chks = $("input[tt=aa]");
                document.getElementById("hidIds").value = "";
                var ids = "";
                for (var i = 0; i < chks.length; i++) {
                    if (chks[i].checked) {
                        ids += chks[i].value + ",";
                    }
                }
                ids = ids.substring(0, ids.length - 1);
                document.getElementById("hidIds").value = ids;
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table>
        <tr>
            <td>
                开发版本号：
            </td>
            <td>
                <asp:TextBox ID="txt_Versions" runat="server"></asp:TextBox>
            </td>
            <td>
                对外版本号：
            </td>
            <td>
                <asp:TextBox ID="txt_VersionsOut" runat="server"></asp:TextBox>
            </td>
            <td>
                详细描述：
            </td>
            <td>
                <asp:TextBox ID="txt_Description" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Button ID="btn_Add" runat="server" Text="添加" OnClick="btn_Add_Click" />
                <asp:Button ID="btnPub" runat="server" Text="发布" CssClass="common_button" OnClick="btnPub_Click" /><asp:Button
                    ID="btnCancelPub" runat="server" Text="取消发布" CssClass="common_button" OnClick="btnCancelPub_Click"
                    Width="70px" />
            </td>
        </tr>
    </table>
    <table border="0" align="left" style="width: 100%; border: 1px solid #337ABB;">
        <tr style="background: #337ABB;">
            <td>
                <input id="cbkAll" type="checkbox" />
                全选
            </td>
            <td>
                开发版本号
            </td>
            <td>
                对外版本号
            </td>
            <td>
                详细描述
            </td>
            <td>
                是否发布
            </td>
        </tr>
        <asp:Repeater ID="RepeaterVersions" runat="server">
            <ItemTemplate>
                <tr onmouseover="" onmouseout="">
                    <td valign="top">
                        <input name="select" value='<%# Eval("id") %>' type="checkbox" tt="aa" id="select"
                            runat="server" />
                    </td>
                    <td valign="top">
                        <%#Eval("clientver")%>&nbsp;
                    </td>
                    <td valign="top">
                        <%#Eval("outver")%>&nbsp;
                    </td>
                    <td valign="top">
                        <%#Eval("description")%>&nbsp;
                    </td>
                    <td valign="top">
                        <%#Eval("isPub")%>&nbsp;
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
        <tr>
            <th colspan="5" class="pager">
                <div class="pager">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="15" UrlPaging="True"
                        OnPageChanged="AspNetPager1_PageChanged">
                    </webdiyer:AspNetPager>
                </div>
            </th>
        </tr>
    </table>
    <input id="hidIds" type="hidden" runat="server" />
    </form>
</body>
</html>
